<template>
    <el-radio-group
        v-model="data.options.defaultValue"
        :style="{width: data.options.width}"
    >
        <el-radio
            :style="{display: data.options.inline ? 'inline-block' : 'block'}"
            :label="item.value"
            v-for="(item, index) in data.options.options"
            :key="item.value + index"
        >
            {{ data.options.showLabel ? item.label : item.value }}
        </el-radio>
    </el-radio-group>
</template>
<script>
export default {
    name: 'FormRadio',
    props: {
        data: {
            type: Object
        }
    },
    methods: {

    }
}
</script>
